const Mock = require("mockjs")
// 分类
const classify = Mock.mock({
    "classify|20": [
        {
            id: "@id",
            texts: '@ctitle(2,4)',   // 一级菜单
            "icof|4": [
                {
                    title: "@cword(4)",
                    id: "@id",
                    "info|8-15": [
                        {
                            img: "@image(50x50,@color)",
                            id: "@id",
                            name: "@cword(2,4)",
                            "children|20": [
                                {
                                    "id": "@id",
                                    img: "@image(50x50,@color)",
                                    title: "@cword(20,30)",
                                    "sales|100-9999": 1,//销量
                                    "price|100-999": 1,//价格
                                    "info": "@cword(50)",//说明
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],

})
module.exports = {
    classify: classify.classify
}
